package com.demo.common.redis.annoations;

import com.demo.common.redis.stream.BaseStreamConfig;
import com.demo.common.redis.stream.StreamApplicationStartedEvent;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>
 * 启用Redis 的 Stream模式
 * </p>
 *
 * @author molong
 * @date 2022/6/22
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import({BaseStreamConfig.class, StreamApplicationStartedEvent.class})
public @interface EnableRedisStream {


}
